package com.foolishbird.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;



public class Popup implements Parcelable {

    /**
     * 公告弹窗内容
     */
    @SerializedName("content")
    private String content;

    /**
     * 公告弹窗标题
     */
    @SerializedName("title")
    private String title;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.content);
        dest.writeString(this.title);
    }

    public Popup() {
    }

    protected Popup(Parcel in) {
        this.content = in.readString();
        this.title = in.readString();
    }

    public static final Creator<Popup> CREATOR = new Creator<Popup>() {
        @Override
        public Popup createFromParcel(Parcel source) {
            return new Popup(source);
        }

        @Override
        public Popup[] newArray(int size) {
            return new Popup[size];
        }
    };
}
